#ifndef _TIMVITRIFORM_H_
#define _TIMVITRIFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FWeb.h>
#include <FSystem.h>
#include <FGraphics.h>

class TimViTriForm: public Osp::Ui::Controls::Form,
		public Osp::Ui::IActionEventListener {

	// Construction
public:
	TimViTriForm(void);
	virtual ~TimViTriForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

	// Implementation
protected:
	//Action Id
	static const int ID_SOFTKEY_XEMMAP = 1024;
	static const int ID_SOFTKEY_BACK = 1025;
	//
	Osp::Ui::Controls::Frame *pFrame;
	Osp::Ui::Controls::Form *pFormParent;

	//Khai bao trang web
	Osp::Web::Controls::Web *pWebTimViTri;
	static int FormId;

public:
	void SetFormId(int id){
		FormId = id;
	}

	static int GetFormId(){
		return FormId;
	}
	// Generated call-back functions
public:
	void SetParentForm(Osp::Ui::Controls::Form *pParent);
	void SetFrame(Osp::Ui::Controls::Frame*pFrame);
	void OnActionPerformed(const Osp::Ui::Control&source, int actionId);
public:
	result CreateWebControl();
	void HienThiCacViTriDangTimTrenMap(Osp::Base::String*);
};

#endif
